import chalk, { Chalk } from "chalk";

console.log("🐫 ~ file: index.mjs:2 ~ chalk:", chalk);

console.log("🐫 ~ file: index.mjs:2 ~ chalk:", chalk.red("asdasda"));
console.log(
  "🐫 ~ file: index.mjs:7 ~ ,chalk.red('asdasda'):",
  chalk.red("asdasda")
);
console.log(
  "🐫 ~ file: index.mjs:7 ~ ,chalk.red('asdasda'):",
  chalk.hex("#ff00ff")("asdasd")
);
console.log(
  "🐫 ~ file: index.mjs:7 ~ ,chalk.red('asdasda'):",
  chalk.hex("#ff00ff").underline("asdasd")
);

console.log(
  "🐫 ~ file: index.mjs:7 ~ ,chalk.red('asdasda'):",
  chalk
    .hex("#ff00ff")
    .underline("asdasd", chalk.rgb("255", "0", "0").bgGreen("next"))
);

const error = (...text) => console.log(chalk.bold.hex("#ff0000")(text));

const warning = (...text) => console.log(chalk.hex("#ffa500")(text));

error("123");
